<?php
defined('_JEXEC') or die('Restricted access');
//Get path of controler.php file in site folder
require_once(JPATH_COMPONENT.DS.'controller.php' );
//Get path of tables which defined in administrator
JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.DS.'tables');
echo '<div class="componentheading">Restaurant Reviews</div>';
$controller = new ReviewsController();
//cal display of controller
//. If no task is defined, the 
//display() member function will be called. Otherwise, the name of the task will be 
//matched to a member function of the component.
$controller->execute( JRequest::getVar( 'task' ) );
$controller->redirect();
?>